package com.steven.design.XingWei_Pattern.Observer;


import java.util.Observable;

public class Thief extends Observable {

    public String name;
    public Thief(String name){
        this.name=name;
    }

    public void crime(String event) {
        System.out.println("嫌疑人"+name+"正在" + event);
        setChanged();
        notifyObservers(event);
    }
}
